<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>行内块元素巧妙运用</title>
</head>
<style>
    * {
        margin: 0;
        padding: 0;
    }

    .box {
        /* 行内块小技巧 */
        text-align: center;
    }

    .box a {
        display: inline-block;
        height: 36px;
        width: 36px;
        border: 1px solid #cccccc;
        background-color: #f7f7f7;
        text-align: center;
        line-height: 36px;
        text-decoration: none;
        color: black;
        font-size: 14px;
    }

    .box .pre,
    .box .next {
        width: 85px;
    }

    .box .two,
    .box .num {
        background-color: #fff;
        border: none;
    }

    .box input {
        height: 36px;
        width: 45px;
        border: 1px solid #cccccc;
        outline: none;
    }

    .box button {
        width: 60px;
        height: 36px;
        border: 1px solid #cccccc;
        background-color: #f7f7f7;
    }
</style>

<body>
    <div class="box">
        <a href="#" class="pre">&lt;&lt; 上一页</a>
        <a href="#" class="two">2</a>
        <a href="#">3</a>
        <a href="#">4</a>
        <a href="#">5</a>
        <a href="#">6</a>
        <a href="#" class="num">...</a>
        <a href="#" class="next">&gt;&gt;下一页</a>
        到第<input type="text">页
        <button>确定</button>
    </div>
</body>

</html>